import request from '@/utils/request'

// 查询供应商付款列表
export function listVendorPayment(query) {
  return request({
    url: '/system/provideAllRecords/list',
    method: 'get',
    params: query
  })
}

// 查询供应商付款详细
export function getVendorPayment(id) {
  return request({
    url: '/system/vendorPayment/' + id,
    method: 'get'
  })
}

// 新增供应商付款
export function addVendorPayment(data) {
  return request({
    url: '/system/vendorPayment',
    method: 'post',
    data: data
  })
}

// 修改供应商付款
export function updateVendorPayment(data) {
  return request({
    url: '/system/vendorPayment',
    method: 'put',
    data: data
  })
}

// 删除供应商付款
export function delVendorPayment(id) {
  return request({
    url: '/system/vendorPayment/' + id,
    method: 'delete'
  })
}
// 供应商付款-16点

export function selectProvideWareMoney(provide, createTime) {
  return request({
    url: `/system/provideRecords/selectProvideWareMoney?provide=${provide}&createTime=${createTime}`,
    method: 'get',
  })
}
// 配件库-月结报表导入
export function excelUpload(formData, time) {
  formData.append('time', time);
  return request({
    url: `/excel/upload5`,
    method: 'post',
    data: formData,
    headers: { "Content-Type": "multipart/form-data" }
  })
}


// 导入数据
export function getMonthlyStorageOutApi(data) {
  return request({
    url: `system/order/getMonthlyStorageOut`,
    method: 'get',
    params: data
  })
}